package top.ajunnihao.core.task.tasks;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import top.ajunnihao.core.mapper.UserAbilityMapper;
import top.ajunnihao.core.task.Task;

/**
 * TODO 用户权利恢复任务
 *
 * @author AJun
 * @version 1.0.0
 * @date 2020/6/1
 */
@Component
public class UserAbilityRestoreTask implements Task {

    @Autowired
    private UserAbilityMapper userAbilityMapper;

    @Override
    public void execute() {
        userAbilityMapper.updateUserAbilityToMax();
    }

}
